from db import DB
import logging

# 日志对象
logging.basicConfig(level=logging.INFO, filename='Jingdong.log', format='%(asctime)s - %(levelname)s - %(message)s')

# 数据库对象
DB = DB()
dbSession = DB.session

# 创建一个日志器
logger = logging.getLogger(__name__)


if __name__ == '__main__':
    logger.info("hello word")